package com.charles.seckillManagement.controller;

import com.charles.seckillComponentCommon.controller.BaseController;
import com.charles.seckillComponentCommon.domain.TableInfo;
import com.charles.seckillComponentSecurity.annotation.RolePermit;
import com.charles.seckillManagement.form.LogListQuerys;
import com.charles.seckillManagement.mapper.SysLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/log")
public class AdminLogController extends BaseController {

    @Autowired
    private SysLogMapper sysLogMapper;
    
    /**
     * 订单列表
     */
    @GetMapping("getLogList")
    @RolePermit(values = "admin")
    public TableInfo logTableList(LogListQuerys logListQuerys) {
        startPage();
        return getDataTable(sysLogMapper.queryLogTableList(logListQuerys));
    }

}
